package com.i2works.smartluolong.web.service.company.impl;

import com.i2works.smartluolong.utils.basecommon.BaseCommonServiceImpl;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.utils.exception.ServiceException;
import com.i2works.smartluolong.web.dal.company.dao.ICompanyChangeMemberDAO;
import com.i2works.smartluolong.web.entity.company.CompanyChangeMemberDO;
import com.i2works.smartluolong.web.entity.company.CompanyChangeMemberQuery;
import com.i2works.smartluolong.web.service.company.ICompanyChangeMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工商变更 - 成员业务实现类
 *
 * @author Liu Yutao <koal@vip.qq.com>
 * @date 2018/3/14 16:42
 */

@Service("companyChangeMemberService")
public class CompanyChangeMemberServiceImpl extends BaseCommonServiceImpl<CompanyChangeMemberQuery, CompanyChangeMemberDO> implements ICompanyChangeMemberService {
    @Autowired
    private ICompanyChangeMemberDAO companyChangeMemberDAO;

    /**
     * 后台查询股东信息（返回股东身份）
     */
    @Override
    public List<CompanyChangeMemberDO> queryShareHolderList(CompanyChangeMemberQuery query) throws ServiceException {
        try {
            return companyChangeMemberDAO.queryShareHolderList(query);
        } catch (DAOException e) {
            throw new ServiceException(e);
        }
    }
}
